package com.sirui.cloud.oc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

import com.sirui.cloud.oc.dto.PropertyB;

@SpringBootApplication
@EnableFeignClients
public class OrderCenterApplication {

	public static void main(String[] args) {

		SpringApplication.run(OrderCenterApplication.class, args);
	}

	@Bean
	@ConditionalOnProperty(prefix = "test", name = "aa", havingValue = "2", matchIfMissing = true)
	public PropertyB pb() {
		return new PropertyB();
	}

}
